#ifndef STAGE1_H
#define STAGE1_H
//
#include "stage.h"
#include "attributesmodel.h" 
#include "dragtreeview.h"

class QDomElement;
//class QTreeView;
//
class Stage1 : public Stage
{
Q_OBJECT
	AttributesModel *_attributes;
	DragTreeView *_treeView;
public:
	Stage1();
	~Stage1();
	void clear();
	bool load(QDomElement elem);
	QDomElement xml();	
	AttributesModel *attributes(){
		return _attributes;
	}
	void checkUsed(QTreeWidget *tree);
	void setTreeView(DragTreeView *tv);
private slots:
	void slotAttributeMenu(const QPoint &point);
public slots:
	void slotAddAttribute();
	void slotEditAttribute();
	void slotRemoveAttribute();
signals:
	void attrChanged(int,Attribute*);
};
#endif
